var env = {
	isDev: true,									//环境配置：true 测试环境；fasle 生产环境
	//测试环境
	devUrl: "http://192.168.3.216:8083/",		//服务器地址
	devResUrl: "http://192.168.3.216:8083/",

	// 生产环境
	disUrl : "https://ibms.on-bright.com:8000/propertyService/", // 生产
	// disResUrl: "https://ibms.on-bright.com:8000/static/",
	imgUrl:"https://ibms.on-bright.com:8000",
}

var config = {
	isDev: env.isDev,

	// #ifdef H5
	BASE_URL: env.isDev ? "/dev/" : "/dis/",
	// #endif

	// #ifndef H5
	BASE_URL: env.isDev ? env.devUrl : env.disUrl,
	// #endif

	BASE_RES_URL: env.isDev ? env.devResUrl : env.disResUrl,
	BASE_imgUrl:env.imgUrl,
	
	DeviceCtrlConfig: {
		// PAD门禁
		'1': {
			url: 'io/io.zkteco.AccessControl/ControlDoorById',
			'X-HW-ID' : 'io.zkteco.AccessControl',
			'X-HW-APPKEY': 'shPWfGLz5jZBhXt1FBmS1w=='
		},
		// 停车场门禁
		'2': {
			url: 'io/io.fuji_base.parking/Monitoring/RemoteOrder',
			'X-HW-ID' : 'io.fuji_base.parking',
			'X-HW-APPKEY': 'B7IpyJ+gvPvDqG28FxOzYg=='
		},
		// 停车场车道闸
		'6': {
			url: 'io/io.fuji_base.parking/Monitoring/RemoteOrder',
			'X-HW-ID' : 'io.fuji_base.parking',
			'X-HW-APPKEY': 'B7IpyJ+gvPvDqG28FxOzYg=='
		},
		// 空调
		'3': {
			url: 'io/io.VRVairconditioningsystem/south/0.1.0/IDUteamworkcontrol',
			'X-HW-ID' : 'io.VRVairconditioningsystem',
			'X-HW-APPKEY': '8bCMglaWeUm+7IyiFfSGXw=='
		},
		// 灌溉
		'4-1': {
			url: 'io/io.device.linda.Irrigating/device/sendCommand',
			'X-HW-ID' : 'io.device.linda.Irrigating',
			'X-HW-APPKEY': 'h4WWvHVE3dANFnH9cgKySQ=='
		},
		'4-2': {
			url: 'io/io.device.linda.Irrigating/device/stopIrrigating',
			'X-HW-ID' : 'io.device.linda.Irrigating',
			'X-HW-APPKEY': 'h4WWvHVE3dANFnH9cgKySQ=='
		},
		// 照明
		'5': {
			url: 'Dalitek/Api/ControlA',
			'X-HW-ID' : 'io.publicLighting',
			'X-HW-APPKEY': 'c9zwJ1kkpDz4czC3m2Rxag=='
		}
	},

}
module.exports = config
